list box: Use g_object_notify_by_pspec everywhere
authorMatthias Clasen <mclasen@redhat.com>
Sun, 6 Sep 2015 14:39:57 +0000 (10:39 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 6 Sep 2015 21:11:35 +0000 (17:11 -0400)
We already have the pspec at hand, so use it.

gtk/gtklistbox.c

index 01a0f4df91d62cfa9cce18cf931e36da4d9a6ef0..fe62e1d9a9538180d7c817d1e17d4a4962706e8b 100644 (file)
@@ -3468,7 +3468,7 @@ gtk_list_box_row_set_activatable (GtkListBoxRow *row,
       ROW_PRIV (row)->activatable = activatable;
 
       gtk_list_box_update_row_style (gtk_list_box_row_get_box (row), row);
-      g_object_notify (G_OBJECT (row), "activatable");
+      g_object_notify_by_pspec (G_OBJECT (row), row_properties[ROW_PROP_ACTIVATABLE]);
     }
 }
 
@@ -3516,7 +3516,7 @@ gtk_list_box_row_set_selectable (GtkListBoxRow *row,
       ROW_PRIV (row)->selectable = selectable;
 
       gtk_list_box_update_row_style (gtk_list_box_row_get_box (row), row);
-      g_object_notify (G_OBJECT (row), "selectable");
+      g_object_notify_by_pspec (G_OBJECT (row), row_properties[ROW_PROP_SELECTABLE]);
     }
 }